public int bigDiff(int[] nums) {
  int maxnum =nums[0],minnum = nums[0];
  for (int i = 0;i <=nums.length-1;i++){
    maxnum = Math.max(nums[i],maxnum);
    minnum = Math.min(nums[i],minnum);
  }
  return maxnum-minnum;
}
